#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
int main()
{
int A;
cout<<"vvedite celoe chislo A>999=";
      cin>> A;
      if(A>999)
      {
      cout<<"ravno="<<(A/1000)%10;
      }
      else
      {
          cout<<"nea";
      }
      return 0;
}
